/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Administrator
 */
public class AccountFactory {
    public enum AccountClass{
        INDIVIDUAL,
        VIP,
        ENTERPRISE,        
    }
    public Account generateAccount(AccountClass accClass) {
        Account acc = null;
        switch(accClass) {
            case INDIVIDUAL:
                acc = new IndividualAccount();
                break;
            case VIP:
                acc = new VipAccount();
                break;
            case ENTERPRISE:
                acc = new EnterpriseAccount();
                break;                
        }
        return acc;
    }
}
